<include file="../header" />
<body class="J_scroll_fixed">
<script>
        $(document).ready(function() {
            
            
           $('button.coachPerform').click(function () {

                var id = $(this).attr("id");
 
                layer.open({

                    type: 2,
                    title: '教练绩效评估',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['80%', '98%'],
                    content: "{:U('coach/coachPerform')}&coachId="+id

                });
            });
           
        });
    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('report/vipOrder')}">
    <input type="hidden" name="shopId" value="{$shopId}"/>
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
                    店铺选择：{:getShopSelectHtml($shopId,1)}
                    日期选择：
                    <input type="text" name="startTime" class="input length_2 J_date" value="{$startTime}" autocomplete="off">-<input type="text" name="endTime" class="input length_2 J_date" value="{$endTime}" autocomplete="off">
            <button class="btn btn-primary">搜索</button>            
            <a class="btn" href="{:U('report/vipOrder')}">重置</a>            
        </span>
        </div>
    </div>
</form>
    <form action="{:U('report/vipOrder')}" method="post">
        <input type="hidden" name="shopId" value="{$shopId}"/>
        <input type="hidden" name="startTime" value="{$startTime}"/>
        <input type="hidden" name="endTime" value="{$endTime}"/>
        <input type="hidden" name="export" value="export"/>
        <button class="btn btn-primary">导出Excel</button>
    </form>
<div class="wrap J_check_wrap">
    
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>姓名</th>
            <th>手机号</th>
            <th>卡类型</th>
            <th>单价</th>
            <th>数量</th>
            <th>小计</th>
            <th>收款方式</th>
            <th>订单号</th>
            <th>会籍</th>
            <th>线上/线下</th>
            <th>购买渠道</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.order_id}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.vip_name}</td>
                <td>{$vo.mobile}</td>
                <td>{:getEnumString($cardType,$vo['buy_type'])}</td>
                <td>{$vo.unit} 元</td>
                <td>{$vo.term_number} 张</td>
                <td>{$vo.price} 元</td>
                <td>{:getEnumString($payType,$vo['pay_type'])}</td>
                <td>{$vo.out_trade_no}</td>
                <td>{$vo.name}</td>
                <td>{:getEnumString($source,$vo['source'])}</td>
                <td>{:getEnumString($channel,$vo['channel'])}</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>